package Org.lanqiao.team.domain;

import Org.lanqiao.team.service.Status;

public class Designer extends Programmer  {
    public double bonus;
    public Status status = Status.FREE;
    NoteBook noteBook = new NoteBook("",0);
    private Equipment equipment;

    public Designer() {
    }

    public double getBonus() {
        return bonus;
    }

    public Designer(int id, String name, int age, double salary, double bonus, Equipment equipment){
        super(id, name, age, salary,equipment);
        this.bonus = bonus;
        this.equipment=equipment;
    }

    @Override
    public String toString() {
        return
                getId() +"    "+
                        getName()+"    "+
                        getAge()+"    "+
                        getSalary()+"    "+
                        "Designer"+"    "+
                        status +"    "+
                        bonus+"    "+
                        "      "+
                        this.equipment.getDescription();
    }
}
